package com.yb.project.base.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
public class BaseEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	/** ID */
	private Long id;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private Date updateTime;
	
	public BaseEntity() {
		super();
	}
	public BaseEntity(Long id) {
		super();
		this.id = id;
	}
	public BaseEntity(Long id, String createBy, String updateBy, Date createTime, Date updateTime) {
		super();
		this.id = id;
		this.createBy = createBy;
		this.updateBy = updateBy;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
}
